package request

import "gin-admin/common/dto/request"

type CreateMenuRequest struct {
	ParentID  string `json:"parent_id" form:"parent_id"`
	Level     int    `json:"level" form:"level"`
	Path      string `json:"path" form:"path"`
	Name      string `json:"name" form:"name" binding:"required"`
	Code      string `json:"code" form:"code" binding:"required"`
	Url       string `json:"url" form:"url"`
	Icon      string `json:"icon" form:"icon"`
	IsRouter  bool   `json:"is_router" form:"is_router"`
	KeepAlive bool   `json:"keep_alive" form:"keep_alive"`
	IsHidden  bool   `json:"is_hidden" form:"is_hidden"`
	Sort      int    `json:"sort" form:"sort"`
}

type ModifyMenuRequest struct {
	request.IDRequest
	CreateMenuRequest
}

type MenuQueryRequest struct {
	request.BaseQueryRequest
	Name  string `json:"name" form:"name"`
	Code  string `json:"code" form:"code"`
	Level int    `json:"level" form:"level"`
}
